CC = g++
CXXFLAGS = -c -g
INCLUDE = -I/usr/include/jsoncpp
LIB = -lopencv_core -lopencv_videoio -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_imgcodecs -ljsoncpp -lcurl -lcrypto -lpthread
target = face

SRC = $(wildcard *.cpp)
OBJ = $(patsubst %.cpp, %.o, $(SRC))

$(target):$(OBJ)
	$(CC) $^ -o $@ $(LIB)
%.o:%.cpp
	$(CC) $(CXXFLAGS) $^ -o $@ $(INCLUDE)

.PHONY:clean
clean:
	rm $(target) *.o	
